7d4349
@@ -618,12 +618,17 @@
public class SftpOperations implements RemoteFileOperations<SftpRemoteFile> {
         // that
         if (FileUtil.hasLeadingSeparator(path)) {
             // change to root path
-            if (!FileUtil.isWindows()) {
+            if (!path.matches("^[a-zA-Z]:(//|\\\\).*$")) {
                 doChangeDirectory(path.substring(0, 1));
                 path = path.substring(1);
             } else {
-                doChangeDirectory(path.substring(0, 4));
-                path = path.substring(4);
+                if(path.matches("^[a-zA-Z]:(//).*$")) {
+                    doChangeDirectory(path.substring(0, 3));
+                    path = path.substring(3);
+                } else if(path.matches("^[a-zA-Z]:(\\\\).*$")) {
+                    doChangeDirectory(path.substring(0, 4));
+                    path = path.substring(4);
+                }
             }
         }
 
